<?php
/**
 * 优惠卷类
 * Create by PhpStorm
 * User: lijia
 * Data: 2020/8/21
 * Time: 10:22
 */

namespace app\api\controller;



use app\api\business\CouponBus;

class Coupon extends UserCommon
{

    public function __construct(){
        parent::__construct();
    }

    /**
     * 获取我的优惠卷
     * @return \think\response\Json
     */
    public function getMyCoupon(){
        $status = input('param.status',0,'intval');
        try{
            $list = (new CouponBus())->getList($status);
            return resJson(200,'ok',$list);
        }catch (\Exception $e){
            return resJson(200,$e->getMessage());
        }
    }

}